package com.txby.platformCore.entity.shop;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.txby.platformCore.entity.SysBaseEntity;

import lombok.Data;

/**
 * 商品订单关系表
 * @author Administrator
 *
 */

@Data
@Entity
@Table(name = "t_txby_sp_goodsOrdersRelation")
public class GoodsOrdersRelation extends SysBaseEntity{
	private Long goodsTypeId;//关联商品总栏目类别id
	private Long shopsId;//关联商家id
	private Long goodsId;//关联商品id,可以为：护理服务、普通服务、商品、床旁点餐
	private Long sickId;//关联患者信息id
	private Long ordersId;//关联订单信息id
	 
	private String goodsName;//商品名称
	private Long goodsNum;//商品数量
	private Double price;//商品单价
	private Double totalMoney;//合计金额
	private Integer isVisitor;//默认0：患者1：访客,如果用户为访客，sickId则保存访客t_txby_sp_visitorUser的id
}
